package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.TravelItineraryPictureMapper;
import com.ktgj.customer.domain.TravelItineraryPicture;
import com.ktgj.customer.service.ITravelItineraryPictureService;

/**
 * 行程详情图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-13
 */
@Service
public class TravelItineraryPictureServiceImpl implements ITravelItineraryPictureService 
{
    @Autowired
    private TravelItineraryPictureMapper travelItineraryPictureMapper;

    /**
     * 查询行程详情图片
     * 
     * @param travelItineraryPictureId 行程详情图片ID
     * @return 行程详情图片
     */
    @Override
    public TravelItineraryPicture selectTravelItineraryPictureById(Long travelItineraryPictureId)
    {
        return travelItineraryPictureMapper.selectTravelItineraryPictureById(travelItineraryPictureId);
    }

    /**
     * 查询行程详情图片列表
     * 
     * @param travelItineraryPicture 行程详情图片
     * @return 行程详情图片
     */
    @Override
    public List<TravelItineraryPicture> selectTravelItineraryPictureList(TravelItineraryPicture travelItineraryPicture)
    {
        return travelItineraryPictureMapper.selectTravelItineraryPictureList(travelItineraryPicture);
    }

    /**
     * 新增行程详情图片
     * 
     * @param travelItineraryPicture 行程详情图片
     * @return 结果
     */
    @Override
    public int insertTravelItineraryPicture(TravelItineraryPicture travelItineraryPicture)
    {
        return travelItineraryPictureMapper.insertTravelItineraryPicture(travelItineraryPicture);
    }

    /**
     * 修改行程详情图片
     * 
     * @param travelItineraryPicture 行程详情图片
     * @return 结果
     */
    @Override
    public int updateTravelItineraryPicture(TravelItineraryPicture travelItineraryPicture)
    {
        return travelItineraryPictureMapper.updateTravelItineraryPicture(travelItineraryPicture);
    }

    /**
     * 批量删除行程详情图片
     * 
     * @param travelItineraryPictureIds 需要删除的行程详情图片ID
     * @return 结果
     */
    @Override
    public int deleteTravelItineraryPictureByIds(Long[] travelItineraryPictureIds)
    {
        return travelItineraryPictureMapper.deleteTravelItineraryPictureByIds(travelItineraryPictureIds);
    }

    /**
     * 删除行程详情图片信息
     * 
     * @param travelItineraryPictureId 行程详情图片ID
     * @return 结果
     */
    @Override
    public int deleteTravelItineraryPictureById(Long travelItineraryPictureId)
    {
        return travelItineraryPictureMapper.deleteTravelItineraryPictureById(travelItineraryPictureId);
    }
}
